package view.iscrizioni;

import java.util.List;

import javax.swing.ListModel;
import javax.swing.event.ListDataListener;

import model.core.utente.GiocatoreInterface;



/**
 * 
 * @author Giuseppe Fusco (fusgius19@gmail.com)
 *
 */
@SuppressWarnings("rawtypes")
public class GiocatoreListModel implements ListModel{

	private List<? extends GiocatoreInterface> contacts;
	
	public GiocatoreListModel(List<? extends GiocatoreInterface> contacts) {
		this.contacts=contacts;
	}
	
	@Override
	public void addListDataListener(ListDataListener arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public Object getElementAt(int arg0) {
		// TODO Auto-generated method stub
		return contacts.get(arg0);
	}

	@Override
	public int getSize() {
		// TODO Auto-generated method stub
		return contacts.size();
	}
	
	@Override
	public void removeListDataListener(ListDataListener arg0) {
		// TODO Auto-generated method stub

	}
}
